package com.zy.mc_module.ui.setting.setpay;

import com.zy.mc_module.mvp.base.BaseModel;
import com.zy.mc_module.mvp.base.IView;
import com.zy.mc_module.mvp.bean.BaseBean;

import io.reactivex.Observable;

/**
 * author : dq
 * date   : 19/4/16
 * desc   : 设置支付密码
 */
public interface SetPayContract {
    interface View extends IView {
        void onSuccess(boolean isSuc, String msg);//设置/修改密码成功

        void checkSuccess(boolean isSuc, String msg);//校验密码

        void forgetSuccess(boolean isSuc);//找回支付密码
    }

    interface Model extends BaseModel {
        Observable<BaseBean> setPayPwd(Object... objects);//设置支付密码

        Observable<BaseBean> checkPayPwd(Object... objects);//校验支付密码

        Observable<BaseBean> changePayPwd(Object... objects);//修改支付密码

        Observable<BaseBean> forgetPayPwd(Object... objects);//找回支付密码
    }
}
